<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <load href="{$Think.const.CSS_URL}bootstrap.min.css" />
        <load href="{$Think.const.CSS_URL}bootstrap-theme.min.css" />
        <load href="{$Think.const.JS_URL}jquery-3.1.0.min.js" />
        <load href="{$Think.const.JS_URL}Js/bootstrap.min.js" />
        <load href="{$Think.const.JS_URL}kindeditor-all-min.js" />
         <load href="{$Think.const.JS_URL}zh_CN.js" /> 
    <script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
				K('input[name=getHtml]').click(function(e) {
					alert(editor.html());
				});
				K('input[name=isEmpty]').click(function(e) {
					alert(editor.isEmpty());
				});
				K('input[name=getText]').click(function(e) {
					alert(editor.text());
				});
				K('input[name=selectedHtml]').click(function(e) {
					alert(editor.selectedHtml());
				});
				K('input[name=setHtml]').click(function(e) {
					editor.html('<h3>Hello KindEditor</h3>');
				});
				K('input[name=setText]').click(function(e) {
					editor.text('<h3>Hello KindEditor</h3>');
				});
				K('input[name=insertHtml]').click(function(e) {
					editor.insertHtml('<strong>插入HTML</strong>');
				});
				K('input[name=appendHtml]').click(function(e) {
					editor.appendHtml('<strong>添加HTML</strong>');
				});
				K('input[name=clear]').click(function(e) {
					editor.html('');
				});
			});
		</script>
    </head>
    <body>
            <div class="container-fluid">
        <div >
            <form action="{$Think.const.ADMIN_URL}Article/modify/id/{$vo['id']}" role="form" method="POST">
        <div class="form-group">
          <label for="标题" class="control-label">标题</label>
          <input type="text" class="form-control" id="标题" value="{$vo['title']}" name="title">
        </div>
        <div class="form-group">
          <label for="作者" class="control-label">作者</label>
          <input type="text" class="form-control" id="作者" value="{$vo['provider']}" name="provider">
        </div>
        <div class="form-group">
             <label for="内容" class="control-label">内容</label>
             <textarea name="content" id="内容" class="form-control" style="height: 400px;width: 100%">
                    {$vo['content']}
             </textarea>
             </div>
            <input class="form-control"  type="submit" value="提交">
      </form>
        </div>
    </div>
    </body>
</html>
